SAY "AMOSAIC (Playmod.rexx): I'm afraid I can't start edplayer."
SAY "Make sure that it is available as Edplayer:edlayer."
EXIT
END
END
/* Hires player, if deiconified */
ADDRESS 'EDPLAYER' 'SYNTH 2'
/* Asl file requester, ordinary size text */
ADDRESS 'EDPLAYER' 'FREQ 34'
ADDRESS 'EDPLAYER' 'JUKE '||filename
ADDRESS 'EDPLAYER' "PJUM"
ADDRESS 'EDPLAYER' "MESS Amiga Mosaic Music Playback"
Delay(30)
/* if something still playing or paused, leave alone */
DO UNTIL (~((edstatus = 5) | (edstatus = 9)||(edstatus = 6)|(edstatus = 10)))
ADDRESS 'EDPLAYER' "MESS Amiga Mosaic Music Playback. Mosaic is from the NCSA at the University of Illinois at Urbana Champagne. The Amiga port is by Michael Fischer, Michael Witbrock, and Michael Meyer. "
Delay(1800) /* 30 seconds */
ADDRESS 'EDPLAYER' 'APLA'
edstatus=RESULT
END
/* if everything finished, or we are stopped then leave viewer and delete */